@layout("/layout/header.html"){}
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">边框表单</div>
                                <div class="widget-function am-fr">
                                    <a href="javascript:;" class="am-icon-cog"></a>
                                </div>
                            </div>
                            <div class="widget-body am-fr">

                                <form id="testUser-save-form" class="am-form tpl-form-border-form tpl-form-border-br" method="post" action="${ctxPath!}/testUser/save">
                                    <input type="hidden" value="${item.id!}" name="id"/>
                                    <div class="am-form-group">
                                        <label for="nickname" class="am-u-sm-3 am-form-label">昵称 <span class="tpl-form-line-small-title">Title</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="tpl-form-input" name="nickname" value="${item.nickname!}" placeholder="请输入标题文字" data-error="用户名或密码错误">
                                            <small>请填写标题文字10-20字左右。</small>
                                        </div>
                                    </div>
 									<div class="am-form-group">
                                        <label for="username" class="am-u-sm-3 am-form-label">用户名 <span class="tpl-form-line-small-title">Title</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="tpl-form-input" name="username" value="${item.username!}" placeholder="请输入标题文字">
                                            <small>请填写标题文字10-20字左右。</small>
                                        </div>
                                    </div>
                                     <div class="am-form-group">
                                        <label for="password" class="am-u-sm-3 am-form-label">密码 <span class="tpl-form-line-small-title">Title</span></label>
                                        <div class="am-u-sm-9">
                                            <input type="text" class="tpl-form-input" name="password" value="${item.password!}" placeholder="请输入标题文字">
                                            <small>请填写标题文字10-20字左右。</small>
                                        </div>
                                    </div>
     
                                    <div class="am-form-group">
                                        <div class="am-u-sm-9 am-u-sm-push-3">
                                            <button type="button" id="testUserId" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    </div>
    <script src="${ctxPath}/static/assets/js/amazeui.min.js"></script>
    <script src="${ctxPath}/static/assets/js/amazeui.datatables.min.js"></script>
    <script src="${ctxPath}/static/assets/js/dataTables.responsive.min.js"></script>
    <script src="${ctxPath}/static/assets/js/app.js"></script>
<script type="text/javascript" src="${ctxPath!}/static/layer/layer.min.js"></script>
		<script type="text/javascript" src="${ctxPath}/static/validate/Validform_v5.3.2_min.js"></script>

		<script type="text/javascript">
			

			jQuery(function($) {
				$("#testUser-save-form").Validform({
					btnSubmit:"#testUserId",
					ajaxPost:true,
					beforeSubmit:function(curform){
						$("#testUserId").attr("disabled","disabled").text("保存中…");
					},
					callback:function(data){
						if(undefined != data.error){
							$("#testUserId").removeAttr("disabled").text("保存");
							var obj = $("#testUser-save-form input[data-error='"+data.error+"']");
							layer.tips(data.error,obj, {
								guide:0,
								time: 4,
								style : ['background-color:#F26C4F; color:#fff','#F26C4F' ],
							});
						}else{
							window.location.href = "${ctxPath!}/testUser/list";
						}
					},
					tiptype : function(msg, o, cssctl) {
						if (!o.obj.is("form")) {
							if (o.type != 2) {
								layer.tips(msg, o.obj, {
									guide:3,
									time: 4,
									style : ['background-color:#F26C4F; color:#fff','#F26C4F' ],
								});
							}
						}
					},
					tipSweep : true
				});
				
				$("#login-form").keydown(function(e){
					 var e = e || event,
					 keycode = e.which || e.keyCode;
					 if (keycode==13) {
					  $("#login-btn").trigger("click");
					 }
				});
				
			});
		</script>
</body>

</html>